- /* srfrsmul.cpp by K.Tsuru */
- // function ID = 814 BRADIX
- /*******************************
- SRational class
- operator x*n = x.num*n/x.den
- ********************************/
- #ifndef SN_H
- #include "sn.h"
- #endif
-
- SRational RsMult(const SRational& x, ulong n){
- if(n == 1UL) return x;
- if(!n) return 0.0;
-
- SRational r(x);
- if(n <= r.num.SlOpMaxValue()) IsMult(r.num, n, r.num);
- else r.num *= n;
- r.reduceDone = false;
- r.reduce(false);
- return r;
- }
srfrsmul.cpp : last modifiled at 2016/06/26 16:29:27(479 bytes)
created at 2016/06/26 15:57:35
The creation time of this html file is 2016/09/18 20:28:05 (Sun Sep 18 20:28:05 2016).